/*
 * @Author: HeAo
 * @Date: 2021-09-27 09:37:43
 * @LastEditTime: 2021-09-27 09:57:26
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\3-1-ES6\day03\3-箭头函数this.js
 * 别乱动！
 */
let arrowFun = () => {
  // console.log(this);
}

let obj = {
  name: '张三',
  age: 12,
  gender: 'male',
  // sayName: function() {

  // },
  // sayName () {
  //   console.log(this.name);
  // },
  // sayName: () => {
  //   console.log(this);
  // }
  sayName () {
    return arrowFun
  }

}
this.name = 'lisi'
module.exports.gender = 'male'
console.log('全局this', this);
console.log('module.exports', module.exports);

obj.sayName()();

